package com.bbx.taxi.client.Task;

import android.app.Activity;
import android.content.Context;

import com.bbx.androidapi.util.SharedPreUtil;
import com.bbx.androidapi.util.ToastUtil;
import com.bbx.api.sdk.model.base.BaseRequest;
import com.bbx.api.sdk.model.passanger.StartUpBuild;
import com.bbx.api.sdk.net.base.BaseNetwork;
import com.bbx.api.sdk.net.passeger.conn.CancelReasonListNet;
import com.bbx.api.sdk.net.passeger.conn.StartUpNet;
import com.bbx.api.util.SharedPreEncryptUtil;
import com.bbx.taxi.client.MyApplication;
import com.bbx.taxi.client.R;
import com.bbx.taxi.client.Bean.Message.ObserverListener.DATA_TYPE;

/** 
 * @Path com.bbx.taxi.client.Task.MyStartUpTask.java
 * @Author 严旭文
 * @Date 2016-12-6 上午10:08:39
 * @Company 蓝海（福建）信息技术有限公司
 * @Description
 * 乘客app启用/唤醒时调用(未登入用户不需要调用)
 */
public class MyStartUpTask extends BaseTask{
    public DATA_TYPE TYPE=DATA_TYPE.STARTUP;
    public StartUpBuild mStartUpBuild;
	public MyStartUpTask(Context context,String province) {
		super(context);
		mStartUpBuild=new StartUpBuild(context);
		mStartUpBuild.uid=MyApplication.getInstance().getUid();
		mStartUpBuild.access_token=MyApplication.getInstance().getToken();
		mStartUpBuild.province=province;
		mStartUpBuild.phone=MyApplication.getInstance().user_phone;
	}
	@Override
	public boolean isShow() {
		return false;
	}

	@Override
	public boolean isReturnString() {
		return true;
	}
	@Override
	public boolean condition() {
		// TODO Auto-generated method stub
		return true;
	}
	@Override
	public void request() {
		setType(TYPE,mStartUpBuild);
	}
	@Override
	public void success(int status,Object object) {}
	@Override
	public void failed(int status, String msg,String message) {}
	@Override
	public BaseNetwork getBaseNetwork() {
		return new StartUpNet(context);
	}
}

